﻿using DAL;
using IService;
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Service
{
    public class WhTransferDetailService : IWhTransferDetailService
    {
        private readonly WhTransferDetailDal dal;
        public WhTransferDetailService(WhTransferDetailDal dal)
        {
            this.dal = dal;
        }

        public Task<int> CreateAsync(WhTransferDetail data)
        {
            return dal.CreateAsync(data);
        }

        public Task<int> DeleteAsync(long Id)
        {
            return dal.DeleteAsync(Id);
        }

        public Task<List<WhTransferDetail>> GetAllAsync()
        {
            return dal.GetAllAsync();
        }

        public Task<WhTransferDetail> GetByIdAsync(long Id)
        {
            return dal.GetByIdAsync(Id);
        }

        public Task<int> UpdateAsync(WhTransferDetail date)
        {
            return dal.UpdateAsync(date);
        }
    }
}
